/* ======================== */
/* Markdown 内容美化样式表 */
/* 版本: 1.0                */
/* 作者: AI助手             */
/* ======================== */

/* ------------------------ */
/* 基础样式重置与全局设置     */
/* ------------------------ */
.md-content {
    box-sizing: border-box;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
    line-height: 1.6;
    color: #333;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  }
  
  .md-content * {
    box-sizing: inherit;
    margin: 0;
    padding: 0;
  }
  
  /* ------------------------ */
  /* 标题层级                  */
  /* ------------------------ */
  .md-content h1 {
    font-size: 2.5rem;
    margin: 2rem 0 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #eee;
    color: #2c3e50;
  }
  
  .md-content h2 {
    font-size: 2rem;
    margin: 1.8rem 0 1.2rem;
    color: #34495e;
  }
  
  .md-content h3 {
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem;
    color: #4a5568;
  }
  
  /* ------------------------ */
  /* 段落与文字元素            */
  /* ------------------------ */
  .md-content p {
    margin: 1rem 0;
    font-size: 1.1rem;
  }
  
  .md-content strong {
    color: #e74c3c;
    font-weight: 600;
  }
  
  .md-content em {
    color: #3498db;
    font-style: italic;
  }
  
  .md-content a {
    color: #2980b9;
    text-decoration: none;
    border-bottom: 1px dotted currentColor;
  }
  
  .md-content a:hover {
    color: #e74c3c;
    border-bottom-style: solid;
  }
  
  /* ------------------------ */
  /* 列表样式                 */
  /* ------------------------ */
  .md-content ul {
    margin: 1rem 0;
    padding-left: 2rem;
    list-style: none;
  }
  
  .md-content ul li {
    position: relative;
    padding-left: 1.5rem;
    margin: 0.5rem 0;
  }
  
  .md-content ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #3498db;
  }
  
  .md-content ol {
    margin: 1rem 0;
    padding-left: 2rem;
    counter-reset: ordered-list;
  }
  
  .md-content ol li {
    counter-increment: ordered-list;
    margin: 0.5rem 0;
  }
  
  .md-content ol li::before {
    content: counter(ordered-list) ". ";
    color: #3498db;
    font-weight: bold;
  }
  
  /* ------------------------ */
  /* 代码块与内联代码          */
  /* ------------------------ */
  .md-content code:not([class]) {
    background: #f8f9fa;
    padding: 0.2em 0.4em;
    border-radius: 4px;
    color: #c92a2a;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  }
  
  .md-content pre {
    background: #2d2d2d;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    overflow-x: auto;
  }
  
  .md-content pre code {
    color: #f8f8f2;
    font-family: "Fira Code", "Source Code Pro", monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    display: block;
  }
  
  /* ------------------------ */
  /* 引用块设计                */
  /* ------------------------ */
  .md-content blockquote {
    background: #f8f9fa;
    border-left: 4px solid #3498db;
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    border-radius: 0 4px 4px 0;
    color: #666;
  }
  
  .md-content blockquote p {
    margin: 0;
  }
  
  /* ------------------------ */
  /* 表格美化                 */
  /* ------------------------ */
  .md-content table {
    width: 100%;
    margin: 2rem 0;
    border-collapse: collapse;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  }
  
  .md-content th {
    background: #3498db;
    color: white;
    padding: 1rem;
    text-align: left;
  }
  
  .md-content td {
    padding: 0.8rem;
    border-bottom: 1px solid #eee;
  }
  
  .md-content tr:nth-child(even) {
    background: #f8f9fa;
  }
  
  /* ------------------------ */
  /* 响应式优化               */
  /* ------------------------ */
  @media (max-width: 768px) {
    .md-content {
      padding: 1rem;
    }
  
    .md-content table {
      display: block;
      overflow-x: auto;
      white-space: nowrap;
    }
  
    .md-content h1 { font-size: 2rem; }
    .md-content h2 { font-size: 1.75rem; }
  }
  
  /* ------------------------ */
  /* 深色模式支持 (可选)       */
  /* ------------------------ */
  /* @media (prefers-color-scheme: dark) {
    .md-content {
      color: #e0e0e0;
      background: #1a1a1a;
    }
  
    .md-content pre {
      background: #000;
    }
  
    .md-content blockquote {
      background: #2d2d2d;
      border-color: #3498db;
    }
  }
   */
  /* ------------------------ */
  /* Prism 代码高亮适配 (可选) */
  /* ------------------------ */
  /*
  .md-content pre[class*="language-"] {
    background: #2d2d2d;
    margin: 1.5rem -2rem;
    padding: 2rem;
    border-radius: 0;
  }
  */